Pca9555 = require("pca9555")
local offset_width = 1
FileName = string.sub(debug.getinfo(1).source, 2, -5)

local pca9555 = Pca9555:new(nil, offset_width)

function ReadData(tx_buffer, length)
    return pca9555:read(tx_buffer, length, FileName)
end

function WriteData(tx_buffer)
    pca9555:write(tx_buffer, FileName)
end